package my.util.handler;

/**
 * scope is global.
 * Logical split.
 * please extends AbstractProcessor.
 * @author hubert
 *
 */
public interface Processor {
	/**
	 * 用于和 Status.key 匹配.
	 * @return processor key.
	 */
	default Object getKey() { return this; }

    /**
     * logic process method.
     * @param handlerContext HandlerContext
     * @return Status
     */
    Status process(HandlerContext handlerContext);

}
